import { autowired } from "../../lib/decorations/autowired";
import ScoreService from "./ScoreService";

export default  class UserService {

    @autowired
    private scoreService:ScoreService

    public async getUserById(userId: number): Promise<any> {
        const userModel = await { name: 'peter', userId: 123 };
        return userModel;
    }

    public async getUserScore(userId:number):Promise<any>{
        return await  this.scoreService.getUserScore(userId);
    }
}

